Split trivial-httpd into separate binary
authorColin Walters <walters@verbum.org>
Fri, 30 Dec 2016 19:18:34 +0000 (14:18 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 4 Jan 2017 16:32:11 +0000 (16:32 +0000)
commitced22f6c9b096d6bb337886fafd06eae1b888005
treea81d392dc34dd53363fe8e3ed386964730b570d5
parentc051ee4a35c90451f891eb52a0b44554df59912e
Split trivial-httpd into separate binary

Working on the libcurl backend, I hit the issue that the trivial-httpd program
depends on libsoup. I briefly considered having two versions, but libcurl is
client only, and moreover trivial-httpd is no longer trivial - it has various
features which are used by the test suite extensively.

Hence, what we'll do is build it as a separate binary which links to libsoup,
and use it during the tests. We *also* currently still provide `ostree
trivial-httpd` since some things use it like `rpm-ostree-toolbox` and the
Cockpit tests.

After those are ported to use some other webserver, I plan to add a build-time
option to drop it.

Closes: #636
Approved by: jlebon
Makefile-ostree.am
Makefile-tests.am
src/ostree/ostree-trivial-httpd.c [new file with mode: 0644]
src/ostree/ot-builtin-trivial-httpd.c
tests/libtest.sh
tests/test-commit-sign.sh
tests/test-pull-contenturl.sh
tests/test-pull-metalink.sh
tests/test-pull-mirrorlist.sh
tests/test-pull-override-url.sh